Allowed Denoms
Queries the available denominations for the specified token Id found on the specified chain.
query Allowed_denoms($chainUid: String!, $tokenId: String) {
factory(chain_uid: $chainUid) {
allowed_denoms(token_id: $tokenId) {
... on NativeTokenType {
native {
denom
}
}
... on SmartTokenType {
smart {
contract_address
}
}
... on VoucherTokenType {
voucher
}
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Allowed_denoms($chainUid: String!, $tokenId: String) {\n factory(chain_uid: $chainUid) {\n allowed_denoms(token_id: $tokenId) {\n ... on NativeTokenType {\n native {\n denom\n }\n }\n ... on SmartTokenType {\n smart {\n contract_address\n }\n }\n ... on VoucherTokenType {\n voucher\n }\n }\n }\n}","variables":{"chainUid":"stargaze","tokenId":"usdt"}}'
Arguments
- chainUid (String!): The unique identifier of the chain.
- token_id (String!): The Id of the token to get all denominations for.
Return Fields
Field | Type | Description |
---|---|---|
native | Native | Details of the native tokens (Denoms). |
smart | Smart | Details of the CW20 tokens (Contract addresses). |
Voucher | String | Details about the Voucher token. |
Native
Field | Type | Description |
---|---|---|
denom | String | The denomination of the native token. |
Smart
Field | Type | Description |
---|---|---|
contractAddress | String | The contract address of the smart token. |